#include <iostream>
#include "Client.h"

using namespace std;

int main() {
	try{
		//a client holding all devices
		//and a remote control to control
		//6 of them at a maximum
		Client remoteclient;
		//programs the control
		remoteclient.ProgramRemoteControl();
		//call user interface for actions
		remoteclient.UseRemoteControl();
	}
	catch(bad_alloc & ex){
		cerr << ex.what() << endl;
		return false;
	}
	catch(exception & ex){
		cerr << ex.what() << endl;
	}
	return 0;
}